package com.clqteam.serviceimpl;


import com.clqteam.dao.serachZsByInfoDao;
import com.clqteam.daoimpl.serachZsByInfoDaoImpl;
import com.clqteam.service.serachZsByInfoService;

import net.sf.json.JSONObject;

public class serachZsByInfoServiceImpl implements serachZsByInfoService{
	
	serachZsByInfoDao s = new serachZsByInfoDaoImpl();

	@Override
	public int serachProductCountByInfo(String searType, String sertInfo) {
		return s.serachProductCountByInfo(searType, sertInfo);
	}

	@Override
	public JSONObject serachProductByInfo(String searType, String sertInfo, int page, int rows) {
		JSONObject j = new JSONObject();
		j.put("total", s.serachProductCountByInfo(searType, sertInfo));
		j.put("rows", s.serachProductByInfo(searType, sertInfo, page, rows));
		return j;
	}

}
